/* 
*/ 

#include <iostream>
#include <vector>
#include <string>
using std::cout;
using std::endl;
using std::vector;
using std::string;

enum open_modes {input = 1, output, append};

int main() 
{
    open_modes om = append;

    vector<string> open_mode_table;
    open_mode_table.push_back("");  // no enumerator 0
    open_mode_table.push_back("input");
    open_mode_table.push_back("output");
    open_mode_table.push_back("append");

    cout << open_mode_table[input] << " "
         << open_mode_table[om]    << endl;

    return 0;
}
